import request from "./http";

//轮播图
export function getBanner() {
    return request({
        url: "banner",
        methods: "get",
        params: {
            type: 2
        }
    })
}
//图标栏
export function getIcon() {
    return request({
        url: "homepage/dragon/ball",
        methods: "get",
    })
}
//推荐歌单
export function getRecommend() {
    return request({
        url: "personalized",
        methods: "get",
        params: {
            limit: 6
        }
    })
}
//推荐歌曲
export function getSong() {
    return request({
        url: "personalized/newsong",
        methods: "get",
        params: {
            limit: 12
        }
    })
}
//歌曲链接
export function getSongUrl(params) {
    return request({
        url: "song/url",
        methods: "get",
        params
    })
}
// 获取歌词
export function getLyric(params) {
    return request({
        url: "lyric",
        methods: "get",
        params
    })
}
//歌曲详情
export function getSongDetail(params) {
    return request({
        url: "/song/detail",
        methods: "get",
        params
    })
}
